//
//  UITableView+RNOLExtension.m
//  RongNiuOnline
//
//  Created by apple on 2018/5/8.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "UITableView+RNOLExtension.h"

@implementation UITableView (RNOLExtension)

//注册cell
- (void)regsiterCellWithCellClass:(Class)cls isNib:(BOOL)nib{
    if (nib) {
        [self registerNib:[UINib nibWithNibName:NSStringFromClass(cls) bundle:nil] forCellReuseIdentifier:NSStringFromClass(cls)];
    }else{
        [self registerClass:cls forCellReuseIdentifier:NSStringFromClass(cls)];
    }
}

//隐藏下划线
- (void)hideUnderLine{
    self.separatorStyle = UITableViewCellSeparatorStyleNone;
}

//添加一个尾巴 apple的免责声明
- (UIView *)addFooterView{
    RNOLBottomDescriptionFooter *footer = [RNOLBottomDescriptionFooter footer];
    self.tableFooterView = footer;
    return footer;
}

@end
